package abstact;

import sun.util.cldr.CLDRLocaleDataMetaInfo;

public class Test {

    public  Test(){
        MainBoard mb=new MainBoard();
        Toshiba tsb=new Toshiba();
        mb.insert(tsb);
        USB qc=new USB() {
            @Override
            public void start() {
                System.out.println("七彩U盘启动");

            }

            @Override
            public void stop() {
                System.out.println("七彩U盘停止");

            }
        };
        mb.insert(qc);
    }
    public static void main(String[] args){
        MainBoard mb=new MainBoard();
        Toshiba tsb=new Toshiba();
        qicaiyoupan qcyn=new qicaiyoupan();
        mb.insert(tsb);
        mb.insert(qcyn);

        }

    }

